package com.lottery.dao;

import com.lottery.pojo.TableWinningLotteryNumbers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface WinningLotteryNumbersDao {

    void addWinningLotteryNumbers(@Param("n") TableWinningLotteryNumbers numbers);

    void updateWinningLotteryNumbers(@Param("n") TableWinningLotteryNumbers numbers);

    void update432(@Param("n") TableWinningLotteryNumbers numbers);

    List<TableWinningLotteryNumbers> getWinningLotteryNumbers(String startTime, String endTime);

    ///
    TableWinningLotteryNumbers getByDateRegionId(String date, int region_id);

    TableWinningLotteryNumbers getNumber(int region_id, String date);
}
